<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateChargeAvailableTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('charge_available', function(Blueprint $table)
        {
            //可用余额记录
            $table->increments('id');
            $table->integer('user_id')  ->default(0)  ->comment('用户id');
            $table->decimal('amount')   ->default(0)  ->comment('消费金额');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
